<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="/common/meta.jsp"></jsp:include>
<jsp:include page="/common/css_js.jsp"></jsp:include>
<link href="${ctx}/css/left.css" rel="stylesheet" type="text/css">
<script src="${ctx}/js/prototype.lite.js" type="text/javascript"></script>
<script type="text/javascript" src="${ctx}/js/moo.fx.js"></script>
<script type="text/javascript" src="${ctx}/js/moo.fx.pack.js" ></script>

</head>

<body>
<table width="100%" height="280" border="0" cellpadding="0" cellspacing="0" bgcolor="#EEF2FB">
  <tr>
    <td width="182" valign="top">
    <div id="container">
    <security:authorize ifAnyGranted="user_view">
	    <h1 class="type"><a href="javascript:void(0)">权限管理</a></h1>
	      <div class="content">
	        <table width="100%" border="0" cellspacing="0" cellpadding="0">
	          <tr>
	            <td><img src="${ctx }/images/menu_topline.gif" width="182" height="5" /></td>
	          </tr>
	        </table>
	        <ul class="MM">
	          <security:authorize ifAnyGranted="user_view">
				<li><a href="${ctx }/user/user!list.action" target="content">用户管理</a></li>
			</security:authorize>
			 <security:authorize ifAnyGranted="role_view">
				<li><a href="${ctx }/user/role!list.action" target="content">角色管理</a></li>
			</security:authorize>
				<li><a href="${ctx }/user/authority!list.action" target="content">权限管理</a></li>
				<li><a href="${ctx }/user/resources!list.action" target="content">资源管理</a></li>
	        </ul>
	      </div>
     </security:authorize>
      <security:authorize ifAnyGranted="user_view">
	    <h1 class="type"><a href="javascript:void(0)">权限管理</a></h1>
	      <div class="content">
	        <table width="100%" border="0" cellspacing="0" cellpadding="0">
	          <tr>
	            <td><img src="${ctx }/images/menu_topline.gif" width="182" height="5" /></td>
	          </tr>
	        </table>
	        <ul class="MM">
	          <security:authorize ifAnyGranted="user_view">
				<li><a href="${ctx }/user/user!list.action" target="content">用户管理</a></li>
			</security:authorize>
			<security:authorize ifAnyGranted="role_view">
				<li><a href="${ctx }/user/role!list.action" target="content">用户管理</a></li>
			</security:authorize>
	        </ul>
	      </div>
     </security:authorize>
      </div>
       <script type="text/javascript">
		var contents = document.getElementsByClassName('content');
		var toggles = document.getElementsByClassName('type');
	
		var myAccordion = new fx.Accordion(
			toggles, contents, {opacity: true, duration: 400}
		);
		myAccordion.showThisHideOpen(contents[0]);
	</script>
        </td>
  </tr>
</table>

</body>
</html>
